export default {
    fcTime (row,column,cellValue,index) {
        let date = new Date();
        let Y = date.getFullYear();
        let M = date.getMonth()+1;
        let D = date.getDay();
        let h = date.getHours();
        let m = date.getMinutes();
        let s = date.getSeconds();
        Y = Y<10?'0'+Y:Y;
        M = M<10?'0'+M:M;
        D = D<10?'0'+D:D;
        h = h<10?'0'+h:h;
        m = m<10?'0'+m:m;
        s = s<10?'0'+s:s;
        return `${Y}/${M}/${D} ${h}:${m}:${s}`;
    },
    fcTimeNo (row,column,cellValue,index) {
        let date = new Date();
        let Y = date.getFullYear();
        let M = date.getMonth()+1;
        let D = date.getDay();
        Y = Y<10?'0'+Y:Y;
        M = M<10?'0'+M:M;
        D = D<10?'0'+D:D;
        return `${Y}/${M}/${D}`;
    },
    fuTime ({cTime}) {
        let date = new Date();
        let Y = date.getFullYear();
        let M = date.getMonth()+1;
        let D = date.getDay();
        let h = date.getHours();
        let m = date.getMinutes();
        let s = date.getSeconds();
        Y<10?0+Y:Y;
        M<10?0+M:M;
        D<10?0+D:D;
        h<10?0+h:h;
        m<10?0+m:m;
        s<10?0+s:s;
        return `${Y}/${M}/${D} ${h}:${m}:${s}`;
    },
    fcOnline ({online}) {
       return online?'使用中':'未使用';
    },
    fcline ({online}) {
       return online?'在线':'离线';
    },
    ftype ({type}) {
       return type==1?'管理员':'用户';
    }
}